package net.apps.core.impl;

import net.apps.core.ApplContext;
import net.apps.core.ApplManagerStd;
import net.apps.core.Connection;

/**
 * Application context.
 * 
 * @author Maxim Kizub
 *
 */
final class ApplContextImpl implements ApplContext {
	
	ApplManagerStd manager;
	Connection  main_conn;
	
	ApplContextImpl(ApplManagerStd manager, Connection main_conn) {
		this.manager     = manager;
		this.main_conn   = main_conn;
	}
	
	@Override
	public final Connection getConnection() {
		return main_conn;
	}

	@Override
	public ApplManagerStd getApplManager() {
		return manager;
	}
	
}
